<template>
  <div>
    <!-- 顶部区域 -->
    <div class="top">
      <van-icon
        @click="ret()"
        class="arrowLeft"
        style="top: 10px"
        name="arrow-left"
        color="pink"
        size="30"
      />
      <span>个人资料</span>
    </div>

    <!-- 分割线 -->
    <div class="line"></div>

    <!-- 列表项1 -->
    <ul class="list">
      <li class="person">
        <span>头像:</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
      <li style="border: none">
        <span>昵称:</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
    </ul>

    <!-- 分割线 -->
    <div class="line"></div>

    <!-- 列表项2 -->
    <ul class="list">
      <li>
        <span>性别:</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
      <li>
        <span>简介:</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
      <li>
        <span>邮箱:</span>
        <van-icon class="rightArrow" name="arrow" color="#b2b2b2" />
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    methods: {
      ret() {
        this.$router.push({
          path: '/wode/set',
        })
      }
    },
  }
</script>

<style lang="scss" scoped>
.top {
  display: flex;
  height: 45px;
  .arrowLeft {
    padding-left: 10px;
  }
  span {
    font-weight: bold;
    padding-right: 30px;
    font-size: 18px;
    color: rgb(61, 60, 60);
    margin: 0 auto;
    line-height: 45px;
  }
}
.line {
  height: 10px;
  background-color: #f5f7f9;
}
.list {
  li {
    margin: 0 auto;
    width: 340px;
    border-bottom: 1px solid #e7e2e5;
    height: 55px;
    span {
      line-height: 55px;
      font-size: 16px;
      margin: 0 1px;
    }
    .rightArrow {
      left: 280px;
    }
  }
}
</style>